/**
 * @author: ls
 * @date: 2022/3/9
 * @description:
 */
public class Demo {

    public static void main(String[] args) {
        int r = result();
        System.out.println("out:" + r);
    }

    public static int result(){
        int a = 0;
        try {
            ++a;
            System.out.println(a);
            return ++a;
        }catch (Exception e){
            System.out.println(a);
            return a;
        }finally {
            System.out.println(++a);
            return --a;
        }
    }
}
